|
SET SPRITE FRAME
This command will set the frame of the specified sprite.
SET SPRITE FRAME Sprite Number, Frame Value
Sprite Number
Integer
The sprite number
Frame Value
Integer
The frame number to use
This command does not return a value.
When a sprite contains an animated sequence of frames created with the CREATE ANIMATED SPRITE command, you can set the frame directly using this command. The parameters should be specified using integer values.
create animated sprite 1,"manwalking.bmp",1,16,16,1
cls
sprite 1,100,100,1
set sprite frame 1,5
do
loop
end
SPRITE Commands Menu
Index
|